package com.torry.workflow.service.wo.events;


import com.torry.workflow.api.wo.entity.ProcessNode;
import com.torry.workflow.api.wo.entity.WoInfo;
import org.springframework.stereotype.Component;

@Component
public class ProcessEventHandler {

    // 判断是否是中国区工单
    public static void isChinaWo(WoInfo wo, ProcessNode node) {
        int saleId = wo.getSaleId();
        node.setEnable(saleId == 1);
    }
}